package com.example.apple.hxbtc.adapter;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.example.apple.hxbtc.fragment.NoteFragment;
import com.example.apple.hxbtc.utils.AcupointConstant;


/**
 * Created by Administrator on 2016/10/22.
 */
public class NotePagerAdapter extends FragmentPagerAdapter {

    public NotePagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        NoteFragment fragment = new NoteFragment();
        Bundle bundle = new Bundle();
        bundle.putInt(AcupointConstant.INDEX,position);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public int getCount() {
        return 2;
    }
}
